package org.jie.guider.framework.springboot;

/**
 * @author LiJie
 */
public class ShutdownHook implements Runnable {

    private ShutdownHookService service;

    public ShutdownHook(ShutdownHookService service) {
        this.service = service;
    }

    @Override
    public void run() {
        service.shutdown();
    }
}
